package cn.edu.scau.cmi.huhaoxian.orm.service;

import cn.edu.scau.cmi.huhaoxian.orm.domain.Student;
import cn.edu.scau.cmi.huhaoxian.orm.entity.EStudent;
import cn.edu.scau.cmi.huhaoxian.orm.mapper.EStudentMapper;

public class StudentService {
	public Student findStudentById(long id,EStudentMapper mapper) {
		EStudent eStudent = mapper.getEStudent(id);
		Student student = new Student();
		student.setId(id);
		student.setName(eStudent.getName());
		return student;
	}
}
